package com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm;


import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.OperatingUnitForm;

import java.util.Map;

/**
 * 配置表单信息
 */
public interface OperatingUnitFormMapper {
    /**
     * 删除表单信息
     *
     * @param cellFormId
     * @return
     */
    int deleteByPrimaryKey(String cellFormId);

    /**
     * 新增表单信息
     *
     * @param record
     * @return
     */
    int insert(OperatingUnitForm record);

    /**
     * 新增表单信息
     *
     * @param record
     * @return
     */
    int insertSelective(OperatingUnitForm record);

    /**
     * 查询表单信息
     *
     * @param operatingUnitForm
     * @return
     */
    OperatingUnitForm selectBycellId(OperatingUnitForm operatingUnitForm);

    /**
     * 查询表单信息
     *
     * @param cellFormId
     * @return
     */
    OperatingUnitForm selectByPrimaryKeys(String cellFormId);

    /**
     * 修改表单信息
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(OperatingUnitForm record);

    /**
     * 修改表单信息
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelectiveIsNull(OperatingUnitForm record);


    /**
     * 修改表单信息
     *
     * @param record
     * @return
     */
    int updateByPrimaryKey(OperatingUnitForm record);

    /**
     * 根据id查询操作单元表单
     *
     * @param map
     * @return
     */
    OperatingUnitForm getUnitFormByCellId(Map map);
}